package com.gm.sfc;

import android.os.Bundle;
import android.view.Menu;

import com.gm.sfc.logic.DatabaseLogic;
import com.gm.sfc.util.LogUtil;

/**
 * The Top Activity
 * @author $Author: segen.der.gottin@gmail.com $
 * @version $Revision: 18 $
 */
public class TopActivity extends BaseActivity {
    private static final String TAG = "TopActivity";
    private DatabaseLogic mDatabaseLogic;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_top);

        // データベースの生成
        mDatabaseLogic = DatabaseLogic.getInstance(getApplicationContext());
        boolean success = mDatabaseLogic.initialize();
        LogUtil.logD(TAG, String.valueOf(success));
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_top, menu);
        return true;
    }
}
